<template>
	<view>
		<cu-custom bgColor="bg-cyan" isBack>
			<block slot="content">progress</block>
		</cu-custom>
		<view class="smart-panel-head">
			<view class="smart-panel-head-title">
				progress进度
				</view>
				</view>
				<view class="smart-padding-wrap">
					<view class="progress-box">
					<progress :percent="pgList[0]" show-info stroke-width="3" active="true" />
						</view>
						<progress :percent="pgList[1]" activeColor="#10AEFF" stroke-width="3" />
						</view>
					<view class="progress-control">
				<button type="primary" @click="setProgress">设置进度</button>
				<button type="warn" @click="clearProgress">清除进度</button>
					</view>
					</view>
					</view>
</template>

<script>
	export default {
			data() {
				return {
					pgList: [0, 0]
				}
			},
			methods: {
				setProgress() {
					this.pgList = [20, 40]
				},
				clearProgress() {
					this.pgList = [0, 0]
				}
			}
		}
</script>

<style>
</style>